/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "stdafx.h"
#include "lua绑定C.h"

#include <engine_export.h>

static int32 lua_f_ui_set_ScaleDPI(lua_State* L) {
	//int32 id = luaL_checkinteger(L, 1);
	float32 scl = luaL_checknumber(L, 1);
	f_ui_set_ScaleDPI(scl);
	//lua_pushnumber(L, scl);
	return 0;
}

void f_lua_注册引擎函数(lua_State* L) {
	lua_newtable(L);

	static const luaL_Reg sensor_bind[] = {
		{"f_ui_set_ScaleDPI", lua_f_ui_set_ScaleDPI},
	};

	luaL_register(L, nullptr, sensor_bind);
}




#pragma comment(linker, "/INCLUDE:f_lua_test")

__declspec(dllexport) void f_lua_test(float scl) {
	std::cout<<"scl = "<<scl<<std::endl;
}
